<?php include("include.php");?>
<h1>Welcome to Your Profile  <a href="editProfile.php"><img width="24" src="images/edit-user-icon.png" /></a></h1>
<div id="barSeperator"></div>
<div class="form" style="margin-top:15px;">
<form id="editProfileForm" action="editProfileAction.php" method="post">
	<table>
    	<tr>
        	<td id="label">Full Name</td>
            <td id="data"><input type="text" name="name" value="<?php echo $currentUser->getName();?>" /></td>
        </tr>
        <tr>
        	<td id="label">Email</td>
            <td id="data"><input type="text" name="email" value="<?php  echo $currentUser->getEmail();?>" /></td>
        </tr>
        <tr>
        	<td id="label">Country</td>
            <td id="data"><?php echo country::generateSelectionBox($currentUser->getCountry()->getId());?></td>
        </tr>
        <tr>
        	<td id="label">Role</td>
            <td id="data"><?php echo $currentUser->getRole()->getName();?></td>
        </tr>
        <tr>
        	<td id="label">Joined DHCS</td>
            <td id="data"><?php echo date('F-d-Y',$currentUser->getCreatedAt())?></td>
        </tr>
        <tr>
        	<td id="label">&nbsp;</td>
            <td id="data"><img src="images/save.png" 
            onClick="javascript:document.getElementById('editProfileForm').submit()"></td>
        </tr>        
   	</table>
 </form>
 </div>
<?php include("includes/footer.php");?>